package com.vids.model.vo;

import com.vids.model.entity.VIIDServer;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

public class VIIDServerVo extends VIIDServer implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer pageNum;

    private Integer pageSize;

    @JsonProperty(value = "pageNum")
    public Integer getPageNum() {
        if (this.pageNum == null) {
            return 1;
        }
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    @JsonProperty(value = "pageSize")
    public Integer getPageSize() {
        if (this.pageSize == null) {
            return 20;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

}
